--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit a7c67fb2cc4eb9628386f7080365fe4f2fe0f30e
Parents : 22b4fcc
Author : Ivan <e46112d44649266d71fe2193e00a4710>
Signature : T66BB85Valid, signed by author
Date : 2026-07-26T07:10:52-05:00
feat: integrate demo mode middleware into application routing
Changes
3 files changed, 3 insertions(+), 3 deletions(-)
Diff
diff --git a/meshchatx.rsm b/meshchatx.rsm
index 41ea8f62..f57addc2 100644
Binary files a/meshchatx.rsm and b/meshchatx.rsm differ
diff --git a/meshchatx/src/backend/http/middleware.py b/meshchatx/src/backend/http/middleware.py
index 2d49bffc..2c8224a3 100644
--- a/meshchatx/src/backend/http/middleware.py
+++ b/meshchatx/src/backend/http/middleware.py
@@ -4,7 +4,7 @@
Factories take the live app instance and return middleware callables.
Order returned by register_all_routes / _define_routes must remain:
-auth, mime_type, security, csrf, ip_allowlist.
+auth, mime_type, security, csrf, ip_allowlist, demo_mode.
"""
from __future__ import annotations
diff --git a/meshchatx/src/backend/self_check.py b/meshchatx/src/backend/self_check.py
index d1099443..8780cfbf 100644
--- a/meshchatx/src/backend/self_check.py
+++ b/meshchatx/src/backend/self_check.py
@@ -767,9 +767,9 @@ async def _build_probe_aio_app(app: Any):
except Exception:
pass
routes = web.RouteTableDef()
- auth_mw, mime_mw, sec_mw, csrf_mw, ip_mw = app._define_routes(routes)
+ auth_mw, mime_mw, sec_mw, csrf_mw, ip_mw, demo_mw = app._define_routes(routes)
aio_app = web.Application(
- middlewares=[auth_mw, mime_mw, sec_mw, csrf_mw, ip_mw],
+ middlewares=[auth_mw, mime_mw, sec_mw, csrf_mw, ip_mw, demo_mw],
)
setup_session(aio_app, app._encrypted_cookie_storage(use_https=False))
aio_app.add_routes(routes)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────